package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Arrays;
import java.util.Date;

@Getter
@Setter
public class Sign {
    private Long userId;//用户id

    private boolean signstate=false;//签到状态

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date signdate;//签到时间

    private Long times;//连续签到次数

    //此处不初始化就(空指针了,,还不报错,必须debug)
    private MyCredit myCredit=new MyCredit();//信用积分对象



}